package com.lvyq.repository;

import com.lvyq.model.farm.MyPlant;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface MyPlantRepository extends MongoRepository<MyPlant,String> {

    List<MyPlant> findAllByOpenId(String openId);

    MyPlant findByOpenIdAndLandNo(String openId,Integer landNo);
}
